package com.example.aircraftwar.codes.factory;

import static com.example.aircraftwar.codes.activity.GameActivity.game;

import android.content.Context;

import com.example.aircraftwar.codes.activity.GameActivity;
import com.example.aircraftwar.codes.aircraft.BaseEnemyAircraft;
import com.example.aircraftwar.codes.aircraft.BossEnemy;
import com.example.aircraftwar.codes.application.ImageManager;
import com.example.aircraftwar.codes.strategy.EnemyBossShoot;
import com.example.aircraftwar.codes.strategy.EnemyNullShoot;

public class BossEnemyFactory implements EnemyAircraftFactory {

    @Override
    public BaseEnemyAircraft createEnemyAircraft(Context context) {
        BaseEnemyAircraft bossEnemy = new BossEnemy(
                context,
                (int) ( Math.random() * (GameActivity.WINDOW_WIDTH - ImageManager.MOB_ENEMY_IMAGE.getWidth()))*1,
                (int) (Math.random() * GameActivity.WINDOW_HEIGHT * 0.1)*1,
                (Math.random()<0.5) ? 2 : -2,
                0,
                (300 + game.getBossHpAdd()),
                new EnemyBossShoot()
        );
        return bossEnemy;
    }

}
